package cn.ilikes.tools.hbase.jpa.clients;

import cn.ilikes.tools.hbase.jpa.clients.datahander.DataHander;
import cn.ilikes.tools.hbase.jpa.clients.nodes.Node;
import cn.ilikes.tools.hbase.jpa.indexs.IndexClient;

public interface Client {

	public void flush();

	public boolean isOpen();

	public <V> Node findById(Class<V> clazz, Object key) throws JPAHBaseClientsException;
	
	public Node save(Node node) throws JPAHBaseClientsException;

	public void delete(Node node) throws JPAHBaseClientsException;

	public Node update(Node node) throws JPAHBaseClientsException;

	public IndexClient getIndexClient();

	public DataHander getDataHander();

}